/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package org.sbbs.base.async;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 *
 * @author jenkins
 */
@Data
@Component
@ConfigurationProperties(prefix = "task.pool")
public class TaskThreadPoolConfig {
  
  /**
   * 核心线程数
   */
  private int corePoolSize;
  
  /**
   * 最大线程数
   */
  private int maxPoolSize;
  
  /**
   * 线程空闲时间
   */
  private int keepAliveSeconds;
  
  /**
   * 任务队列容量（阻塞队列）
   */
  private int queueCapacity;
}
